package _7;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class AgendaTest {
	private Agenda a = new Agenda();
	static int n=0;

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}


	@Test
	public void testeGACCtr4() {//Cobertura GACC - Test requirement 4: True, False, False
		Agenda ag = new Agenda();
		ag.adicionar_pessoa(new Pessoa("Kevin", "Rua Central", "964981857"));
		assertTrue(ag.se_pessoa_existe(new Pessoa("Kevin", "Rua Predicada", "969999696")));
	}
	
	@Test
	public void testeGACCtr6() {//Cobertura GACC - Test requirement 6: False, True, False
		Agenda ag = new Agenda();
		ag.adicionar_pessoa(new Pessoa("Kevin", "Rua Central", "964981857"));
		assertTrue(ag.se_pessoa_existe(new Pessoa("Cadima", "Rua Central", "969999696")));
	}
	
	@Test
	public void testeGACCtr7() {//Cobertura GACC - Test requirement 7: False, False, True
		Agenda ag = new Agenda();
		ag.adicionar_pessoa(new Pessoa("Kevin", "Rua Central", "964981857"));
		assertTrue(ag.se_pessoa_existe(new Pessoa("Cadima", "Rua Predicada", "964981857")));
	}
	
	@Test
	public void testeGACCtr8() {//Cobertura GACC - Test requirement 8: False, False, False
		Agenda ag = new Agenda();
		ag.adicionar_pessoa(new Pessoa("Kevin", "Rua Central", "964981857"));
		assertFalse(ag.se_pessoa_existe(new Pessoa("Cadima", "Rua Predicada", "969999696")));
	}
}
